package Lista1

object q01 {

  def main(args: Array[String]): Unit = {
    println("entre com os valores")
    val a = readInt()
    val b = readInt()
    val c = readInt()
    var x = a
    var y = a
    var result = 0

    if (b > a)
      x == b
    if (c > b)
      x == c
    if (b < a)
      y == b
    if (b < c)
      y == c

    result = x + y
    println(result);

  }

}